﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace ZOIL.Library.Behaviors
{
    public static class MouseExtensions
    {
        public static bool IsTouchOrigin(this MouseEventArgs e)
        {
            return e != null && e.StylusDevice != null && e.StylusDevice.TabletDevice != null && e.StylusDevice.TabletDevice.Type == TabletDeviceType.Touch;
        }
    }
}
